set (gestureConfiguration_VERSION_MAJOR 1)
set (gestureConfiguration_VERSION_MINOR 0)

SET(gestureConfiguration_SOURCES gestureconfiguration.cpp mainwindow.cpp)
SET(gestureConfiguration_HEADERS_TO_MOC mainwindow.h)
SET(gestureConfiguration_FORMS mainwindow.ui)

QT4_WRAP_UI(gestureConfiguration_FORMS_HEADERS ${gestureConfiguration_FORMS})
QT4_WRAP_CPP(gestureConfiguration_HEADERS_MOC ${gestureConfiguration_HEADERS_TO_MOC})

include_directories ("${CMAKE_CURRENT_SOURCE_DIR}/../mlgesture")
INCLUDE(${QT_USE_FILE})

ADD_DEFINITIONS(${QT_DEFINITIONS})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})

add_executable(gestureConfiguration ${gestureConfiguration_SOURCES} ${gestureConfiguration_FORMS_HEADERS} ${gestureConfiguration_HEADERS_MOC})
target_link_libraries (gestureConfiguration mlgesture ${QT_LIBRARIES} ${OpenCV_LIBS} ${Boost_THREAD_LIBRARY})

install(TARGETS gestureConfiguration DESTINATION ${CMAKE_BINARY_DIR}/app PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ WORLD_WRITE WORLD_EXECUTE)
